import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    // 学生查询用
    {
      path: '/',
      component: () => import('../views/selGrade.vue')
    },
    // 老师查看数据用/创造数据-保存到 js 文件部署给学生查询用
    {
      path: '/create',
      name: 'create',
      component: () => import('../views/createData.vue')
    },
  ]
})

export default router
